package com.yang.cplibrary.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yang.cplibrary.model.dto.space.SpaceAddRequest;
import com.yang.cplibrary.model.dto.space.SpaceQueryRequest;
import com.yang.cplibrary.model.entity.Space;
import com.yang.cplibrary.model.entity.User;
import com.yang.cplibrary.model.vo.SpaceVO;

import javax.servlet.http.HttpServletRequest;


/**
* @author Young
* @description 针对表【space(图片)】的数据库操作Service
* @createDate 2025-04-01 23:25:31
*/
public interface SpaceService extends IService<Space> {

    long addSpace(SpaceAddRequest spaceAddRequest, User loginUser);

    void fillSpaceBySpaceLevel(Space space);

    void validSpace(Space space, boolean add);


    SpaceVO getPictureVO(Space space, HttpServletRequest request);


    Wrapper<Space> getQueryWrapper(SpaceQueryRequest spaceQueryRequest);


    Page<SpaceVO> getSpaceVO(Page<Space> spacePage);


    void checkSpaceAuth(User loginUser, Space space);
}
